Adds the specified key and value to the dictionary.
Namespace: MindFusion.Common
Assembly: Common.js
JavaScript
![]() |
---|
function set (key, value) |
Type: Number, String, Object
The key of the element to add.
Type: Object
The value of the element to add.
If a value with this key is already present in the collection, it is replaced by the new value. The key can be a Number, a String or an Object. If other type is passed as key, exception will be thrown.